package com.woniuxy.light_smart.service.imp;

import com.woniuxy.light_smart.entity.FacilityRules;
import com.woniuxy.light_smart.mapper.FacilityRulesMapper;
import com.woniuxy.light_smart.service.FacilityRulesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FacilityRulesServiceImpl implements FacilityRulesService {
    @Resource
    private FacilityRulesMapper facilityRulesMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return facilityRulesMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(FacilityRules record) {
        return facilityRulesMapper.insertSelective(record);
    }

    @Override
    public FacilityRules selectByPrimaryKey(Long id) {
        return facilityRulesMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FacilityRules record) {
        return facilityRulesMapper.updateByPrimaryKeySelective(record);
    }
}
